<!--
 $ @Author: liujiajun 45444154+wo1261931780@users.noreply.github.com
 $ @Date: 2022-06-13 20:47:01
 $ @LastEditors: liujiajun 45444154+wo1261931780@users.noreply.github.com
 $ @LastEditTime: 2022-06-13 20:47:08
 $ @FilePath: \st-html.github.io\src\aaa013\a074导航案例.html
 $ @Description: 1111
 $ @
 $ @Copyright (c) 2022 by liujiajun 45444154+wo1261931780@users.noreply.github.com, All Rights Reserved.
 -->
<!DOCTYPE html>
<html lang="en">

    <head>
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible"
              content="IE=edge">
        <meta name="viewport"
              content="width=device-width, initial-scale=1.0">
        <title>Document</title>
        <style>
            a {
                background-color: red;
                text-align: center;
                text-decoration: none;
                background-position: center;
                color: white;
                width: 100px;
                height: 100px;
                display: inline-block;
                line-height: 100px;
                /* 要保证内容居中，就设置文本高度为行高 */
            }

            a:hover {
                background-color: yellow;
                color: black;
            }
        </style>
    </head>

    <body>
        <div>我是导航案例</div>
        <hr>
        <a href="#">导航1</a>
        <a href="#">导航1</a>
        <a href="#">导航1</a>
        <a href="#">导航1</a>
        <a href="#">导航1</a>
    </body>

</html>